package types;

import java.util.ArrayList;
import java.util.Arrays;

import processors.ApproximDataProcessor;

public class ApproximData
{
	// constructors
	public ApproximData(
			int imgHeight,
			int imgWidth
	) {
		this.systems = new ArrayList<double[][]>(100);
		initImgMap( imgHeight, imgWidth );
	}
	private void initImgMap(
			int imgHeight,
			int imgWidth
	) {
		this.imgHeight = imgHeight;
		this.imgWidth = imgWidth;
		imgMap = new int[imgHeight][imgWidth];
		for ( int[] mapRow : imgMap )
			Arrays.fill( mapRow, -1 );
	}
	// ~constructors
	

	// getters
	public int[][] imgMap() { return this.imgMap; }
	public int imgHeight() { return this.imgHeight; }
	public int imgWidth() { return this.imgWidth; }
	public ArrayList<double[][]> systems() { return this.systems; }
	// ~getters
	
	// fields
	/**
	 * Map, showing, which set current point corresponds to
	 */
	private int[][] imgMap;
	private int imgHeight;
	private int imgWidth;
	private ArrayList<double[][]> systems;
	private ArrayList<double[]> solutions;
	// ~fileds 
	
	// consts
	public static final int apprSysDim = 6;
	// ~consts
}
